﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetworkTest
{
    //Ping结果类
    public class PingResult
    {
        public string IP { get; set; }
        public bool State { get; set; }
        public int PingRequestNum { get; set; }

        public PingResult() : this(null, false, 2)
        {
        }

        public PingResult(string ip, bool state) : this(ip, state, 2)
        {
        }

        public PingResult(string ip, int num) : this(ip, false, num)
        {
        }

        public PingResult(bool state, int num) : this(null, state, num)
        {
        }

        public PingResult(string ip, bool state, int num)
        {
            IP = ip;
            State = state;
            PingRequestNum = num;
        }
    }
}
